.can-click {
  cursor: pointer;
  position: relative;

  &::before {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background-color: $color-black;
    border: inherit;
    border-color: $color-black;
    border-radius: inherit; /* inherit parent's border radius */
    transform: translate(-50%, -50%);
    opacity: 0;
    content: ' ';
  }

  &:active::before {
    outline: none;
    opacity: 0.1;
  }

  &.disabled {
    opacity: 0.5;
    cursor: not-allowed;

    &::before {
      display: none;
    }
  }
}
